package cn.nnxy.zentao.utils;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class DataUtil {

    public static <T> Map<String ,Object> convertToJsonMap(List<T> datas, Long totalRowCount){
        Map<String, Object> dataMap = new HashMap<>();
        dataMap.put("row", datas);
        dataMap.put("total", totalRowCount);
        return dataMap;
    }
}
